package cn.exrick.xboot.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 客户预约
 * </p>
 *
 * @author yuhaifei
 * @since 2022-01-26
 */
@Data
@TableName("shop_order")
@ApiModel(value = "客户预约")
public class ShopOrder implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * id
         */
        @TableId(value = "id", type = IdType.AUTO)
        @TableField(value = "id")
        @ApiModelProperty(value = "id")
        private Integer id;

        /**
         * 标题
         */
        @TableField(value = "title")
        @ApiModelProperty(value = "标题")
        private String title;

        /**
         * 开始时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "start_time")
        @ApiModelProperty(value = "开始时间")
        private Date startTime;

        /**
         * 结束时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "end_time")
        @ApiModelProperty(value = "结束时间")
        private Date endTime;

        /**
         * 用户id
         */
        @TableField(value = "user_id")
        @ApiModelProperty(value = "用户id")
        private String userId;

        /**
         * open_id
         */
        @TableField(value = "open_id")
        @ApiModelProperty(value = "open_id")
        private String openId;

        /**
         * 头像
         */
        @TableField(value = "avatar")
        @ApiModelProperty(value = "头像")
        private String avatar;

        /**
         * 电话
         */
        @TableField(value = "mobile")
        @ApiModelProperty(value = "电话")
        private String mobile;

        /**
         * 昵称
         */
        @TableField(value = "nickname")
        @ApiModelProperty(value = "昵称")
        private String nickname;

        /**
         * 创建时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;

        /**
         * 确认状态：0未确认。1已确认 2取消
         */
        @TableField(value = "confirm_status")
        @ApiModelProperty(value = "确认状态：0未确认。1已确认 2取消")
        private Integer confirmStatus;

        /**
         * 备注
         */
        @TableField(value = "remark")
        @ApiModelProperty(value = "备注")
        private String remark;

}